package com.team.easybuy.service;

import com.github.pagehelper.PageInfo;
import com.team.easybuy.entity.Car;
import com.team.easybuy.entity.Order;
import com.team.easybuy.entity.OrderDetail;

import java.util.List;

public interface OrderService {

    List<Order> getOrderList(Integer userId, Integer isPay,Integer refund);

    PageInfo<Order> getOrderPage(Integer userId, Integer isPay,Integer refund, Integer pageNum, Integer pageSize);

    List<OrderDetail> getOrderDetailList(Integer orderId);

    boolean delOrder(Integer id);

    boolean calorder(Integer id);

    Order addOrder(Order order, List<OrderDetail> list, List<Car> carList);

    Order loadOrder(Integer id);

    void updatePayType(String out_trade_no);

    void refund(Integer id);

    boolean updateRefund(Integer id);
}
